/*
 * Copyright (C) 2012 Martin Wilsdorf <mwjutils-api@googlecode.com>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */

package com.google.mwjutils.xcode;

/**
 *
 * @author Martin Wilsdorf <mwjutils-api@googlecode.com>
 */
public class XTranslator {

    //<editor-fold defaultstate="collapsed" desc="METHOD Getter">
    /**
     * Get the value of destinationContent at specified index
     *
     * @param aIndex
     * @return the value of destinationContent at specified index
     */
    public final XContent getDestinationContent(final int aIndex) {
        return fDestinationContent[aIndex];
    }
    
    /**
     * Get the value of destinationContent
     *
     * @return the value of destinationContent
     */
    public final XContent[] getDestinationContent() {
        return fDestinationContent;
    }
    
    /**
     * Get the value of sourceContent
     *
     * @return the value of sourceContent
     */
    public final XContent getSourceContent() {
        return fSourceContent;
    }
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="METHOD Setter">
    /**
     * Set the value of destinationContent
     *
     * @param aDestinationContent new value of destinationContent
     */
    public final void setDestinationContent(XContent[] aDestinationContent) {
        fDestinationContent = aDestinationContent;
    }
    
    /**
     * Set the value of destinationContent at specified index.
     *
     * @param aIndex
     * @param aDestinationContent
     */
    public final void setDestinationContent(final int aIndex,
            XContent aDestinationContent) {
        fDestinationContent[aIndex] = aDestinationContent;
    }
    
    /**
     * Set the value of sourceContent
     *
     * @param aSourceContent new value of sourceContent
     */
    public final void setSourceContent(XContent aSourceContent) {
        fSourceContent = aSourceContent;
    }
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="FIELDS">
    private XContent[] fDestinationContent;
    private XContent   fSourceContent = null;
    //</editor-fold>
}
